put char 1 of word 1 of it & word 2 of it into studentname
put studentname & "Attendance" into studentname
go to card studentname
else if which is "Student Profile" then
ask "Which student?"
put char 1 of word 1 of it & word 2 of it into studentname
put studentname & "Profile" into studentname
go to card studentname
else if which is "Grades" then
ask "Which student?"
put char 1 of word 1 of it & word 2 of it into studentname
put studentname & "Grades" into studentname
go to card studentname
else
pass domenu
end if
end doMenu
on closeCard
repeat with x = 1 to 6
enablemenu report, x, true
end repeat
end closeCard
-- part 33 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=52 top=0 right=25 bottom=82
-- title width / last selected line: 0
-- icon id / first selected line: 8538 / 8538
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Grades
----- HyperTalk script -----
on mouseUp
ask "Which student's grades do you wish to see?"
put char 1 of word 1 of it into temp
put temp & word 2 of it & "Grades" into cardname
go to card cardname
end mouseUp
-- part 34 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=84 top=0 right=19 bottom=109
-- title width / last selected line: 0
-- icon id / first selected line: 15972 / 15972
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Attendance
----- HyperTalk script -----
On MouseUp
ask "Which student?"
put char 1 of word 1 of it & word 2 of it into studentname
put studentname & "Attendance" into studentname
go to card studentname
end MouseUp
-- part 35 (button)
-- low flags: 80
-- high flags: 8004
-- rect: left=108 top=0 right=22 bottom=208
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Add a student
----- HyperTalk script -----
on mouseUp
global className,Period
Ask "What is the student's name?" with "OK" or "Cancel"
if it is "Cancel" then exit MouseUp
put it into StudentName
put char 1 of word 1 of it & word 2 of it into temp
set lockscreen to true
push this card
go to card "GradesTemplate"
doMenu "Copy Card"
pop card
doMenu "Paste Card"
put className into card field "Class"
put period into card field "Period"
put StudentName into field "Name"
set name of this card to temp & "Grades"
push this card
go to card "AttendanceTemplate"
doMenu "Copy Card"
pop card
doMenu "Paste Card"
put className into card field "Class"
put period into card field "Period"
put StudentName into card field "Name"
set name of this card to temp & "Attendance"
push this card
go to card "ProfileTemplate"
doMenu "Copy Card"
pop card
doMenu "Paste Card"
put StudentName into field "Name"
set name of this card to temp & "Profile"
go to card "seatingchart"
set lockscreen to false
answer "Please enter name into seating chart"
end mouseUp
-- part contents for background part 40
----- text -----
Monday, April 18, 1988
-- part contents for background part 58
----- text -----
When you are finished entering the names of your students in the seating chart, click on the "done" button. Feel free to move the tardy, absent, and edit buttons if you feel it is necessary.